<script setup>
import axios from "axios";
import { onBeforeMount, ref } from "vue";
import { UploadFilled } from "@element-plus/icons-vue";

let uploadURL = ref("http://192.168.1.100:9090/upload")


</script>

<template>
  <el-upload class="upload-demo" drag :action="uploadURL">
    <el-icon class="el-icon--upload"><upload-filled /></el-icon>
    <div class="el-upload__text">Drop file here or <em>click to upload</em></div>
    <!-- <template #tip>
            <div class="el-upload__tip">
                jpg/png files with a size less than 500kb
            </div>
        </template> -->
  </el-upload>
  <el-button style="float: right">立即升级</el-button>
</template>

<style lang="scss" scoped>
.common-layout,
.el-container,
.el-menu {
  height: 100%;
}
</style>
